/*
 Navicat Premium Data Transfer

 Source Server         : 阿里云服务器：SQL Server
 Source Server Type    : SQL Server
 Source Server Version : 13005026
 Source Host           : 121.40.101.29:1433
 Source Catalog        : scm_main-hysj
 Source Schema         : dbo

 Target Server Type    : SQL Server
 Target Server Version : 13005026
 File Encoding         : 65001

 Date: 15/06/2020 13:41:25
*/


-- ----------------------------
-- Table structure for bd_temp_import_overTime
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[bd_temp_import_overTime]') AND type IN ('U'))
	DROP TABLE [dbo].[bd_temp_import_overTime]
GO

CREATE TABLE [dbo].[bd_temp_import_overTime] (
  [ID] bigint  IDENTITY(1,1) NOT NULL,
  [user_no] varchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [user_name] varchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [date] date  NOT NULL,
  [begin_time] varchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [end_time] varchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [overTime_hours] decimal(18)  NOT NULL,
  [remark] varchar(2000) COLLATE Chinese_PRC_CI_AS  NULL,
  [serial_number] varchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [operator] varchar(50) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [create_time] datetime DEFAULT (getdate()) NULL
)
GO

ALTER TABLE [dbo].[bd_temp_import_overTime] SET (LOCK_ESCALATION = TABLE)
GO

EXEC sp_addextendedproperty
'MS_Description', N'ID',
'SCHEMA', N'dbo',
'TABLE', N'bd_temp_import_overTime',
'COLUMN', N'ID'
GO

EXEC sp_addextendedproperty
'MS_Description', N'工号',
'SCHEMA', N'dbo',
'TABLE', N'bd_temp_import_overTime',
'COLUMN', N'user_no'
GO

EXEC sp_addextendedproperty
'MS_Description', N'姓名',
'SCHEMA', N'dbo',
'TABLE', N'bd_temp_import_overTime',
'COLUMN', N'user_name'
GO

EXEC sp_addextendedproperty
'MS_Description', N'加班日期',
'SCHEMA', N'dbo',
'TABLE', N'bd_temp_import_overTime',
'COLUMN', N'date'
GO

EXEC sp_addextendedproperty
'MS_Description', N'开始时间',
'SCHEMA', N'dbo',
'TABLE', N'bd_temp_import_overTime',
'COLUMN', N'begin_time'
GO

EXEC sp_addextendedproperty
'MS_Description', N'结束时间',
'SCHEMA', N'dbo',
'TABLE', N'bd_temp_import_overTime',
'COLUMN', N'end_time'
GO

EXEC sp_addextendedproperty
'MS_Description', N'加班总小时数',
'SCHEMA', N'dbo',
'TABLE', N'bd_temp_import_overTime',
'COLUMN', N'overTime_hours'
GO

EXEC sp_addextendedproperty
'MS_Description', N'备注',
'SCHEMA', N'dbo',
'TABLE', N'bd_temp_import_overTime',
'COLUMN', N'remark'
GO

EXEC sp_addextendedproperty
'MS_Description', N'流水号',
'SCHEMA', N'dbo',
'TABLE', N'bd_temp_import_overTime',
'COLUMN', N'serial_number'
GO

EXEC sp_addextendedproperty
'MS_Description', N'导入人',
'SCHEMA', N'dbo',
'TABLE', N'bd_temp_import_overTime',
'COLUMN', N'operator'
GO

EXEC sp_addextendedproperty
'MS_Description', N'数据生成时间',
'SCHEMA', N'dbo',
'TABLE', N'bd_temp_import_overTime',
'COLUMN', N'create_time'
GO

EXEC sp_addextendedproperty
'MS_Description', N'加班-加班导入记录表',
'SCHEMA', N'dbo',
'TABLE', N'bd_temp_import_overTime'
GO


-- ----------------------------
-- Primary Key structure for table bd_temp_import_overTime
-- ----------------------------
ALTER TABLE [dbo].[bd_temp_import_overTime] ADD CONSTRAINT [PK_bd_temp_import_overTime] PRIMARY KEY CLUSTERED ([ID])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO

